﻿<Controls:GlassWindow x:Class="AutoPowerSwitch.MainWindow"
                      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                      xmlns:Controls="clr-namespace:ApplicationHelper.Controls;assembly=ApplicationHelper"
                      StateChanged="GlassWindow_StateChanged"
                      Title="Auto Power Switch"
                      WindowStartupLocation="CenterScreen"
                      ResizeMode="CanMinimize"
                      Height="625"
                      Width="365"
                      Icon="Assets/title.png">
    <Grid>
        <Border BorderBrush="Black"
                BorderThickness="4"
                Margin="2"
                CornerRadius="5"
                Background="#FF929292">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="0.487*" />
                    <RowDefinition Height="0.162*" />
                    <RowDefinition Height="0.351*" />
                </Grid.RowDefinitions>
                <StackPanel VerticalAlignment="Top"
                            Margin="0,5,0,0">
                    <Expander x:Name="expOS"
                              Collapsed="Expander_Collapsed"
                              Style="{DynamicResource SimpleExpander}"
                              Expanded="Expander_Expanded"
                              Header="Operating System">
                        <StackPanel>
                            <Grid Height="225">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition />
                                    <ColumnDefinition />
                                    <ColumnDefinition />
                                </Grid.ColumnDefinitions>
                                <Grid.RowDefinitions>
                                    <RowDefinition />
                                    <RowDefinition />
                                </Grid.RowDefinitions>
                                <Image HorizontalAlignment="Center"
                                       MouseLeftButtonDown="Image_MouseLeftButtonDown"
                                       Tag="Shut Down"
                                       Cursor="Hand"
                                       Margin="0"
                                       Width="64"
                                       Height="64"
                                       Source="Assets/shutdown.png" />
                                <Image HorizontalAlignment="Center"
                                       MouseLeftButtonDown="Image_MouseLeftButtonDown"
                                       Tag="Restart"
                                       Cursor="Hand"
                                       Margin="0"
                                       Width="64"
                                       Height="64"
                                       Grid.Column="1"
                                       Source="Assets/restart.png" />
                                <Image HorizontalAlignment="Center"
                                       MouseLeftButtonDown="Image_MouseLeftButtonDown"
                                       Tag="Log Off"
                                       Cursor="Hand"
                                       Margin="0"
                                       Width="64"
                                       Height="64"
                                       Grid.Column="2"
                                       Source="Assets/logout.png" />
                                <Image HorizontalAlignment="Center"
                                       MouseLeftButtonDown="Image_MouseLeftButtonDown"
                                       Tag="Lock"
                                       Cursor="Hand"
                                       Margin="0"
                                       Width="64"
                                       Height="64"
                                       Grid.Row="1"
                                       Source="Assets/lock.png" />
                                <Image HorizontalAlignment="Center"
                                       MouseLeftButtonDown="Image_MouseLeftButtonDown"
                                       Tag="Stand By"
                                       Cursor="Hand"
                                       Margin="0"
                                       Width="64"
                                       Height="64"
                                       Grid.Column="1"
                                       Grid.Row="1"
                                       Source="Assets/standby.png" />
                                <Image HorizontalAlignment="Center"
                                       MouseLeftButtonDown="Image_MouseLeftButtonDown"
                                       Tag="Hibernate"
                                       Cursor="Hand"
                                       Margin="0"
                                       Width="64"
                                       Height="64"
                                       Grid.Column="2"
                                       Grid.Row="1"
                                       Source="Assets/hibernate.png" />
                                <RadioButton x:Name="radioShutDown"
                                             HorizontalAlignment="Center"
                                             Margin="0,0,0,10"
                                             Style="{DynamicResource SimpleRadioButton}"
                                             VerticalAlignment="Bottom"
                                             Content=" Shut Down" />
                                <RadioButton x:Name="radioRestart"
                                             HorizontalAlignment="Center"
                                             Margin="0,0,0,10"
                                             Style="{DynamicResource SimpleRadioButton}"
                                             VerticalAlignment="Bottom"
                                             Content=" Restart"
                                             Grid.Column="1" />
                                <RadioButton x:Name="radioLogOff"
                                             HorizontalAlignment="Center"
                                             Margin="0,0,0,10"
                                             Style="{DynamicResource SimpleRadioButton}"
                                             VerticalAlignment="Bottom"
                                             Content=" Log Off"
                                             Grid.Column="2" />
                                <RadioButton x:Name="radioLock"
                                             HorizontalAlignment="Center"
                                             Margin="0,0,0,10"
                                             Style="{DynamicResource SimpleRadioButton}"
                                             VerticalAlignment="Bottom"
                                             Content=" Lock"
                                             Grid.Row="1" />
                                <RadioButton x:Name="radioStandBy"
                                             HorizontalAlignment="Center"
                                             Margin="0,0,0,10"
                                             Style="{DynamicResource SimpleRadioButton}"
                                             VerticalAlignment="Bottom"
                                             Content=" Stand By"
                                             Grid.Row="1"
                                             Grid.Column="1" />
                                <RadioButton x:Name="radioHibernate"
                                             HorizontalAlignment="Center"
                                             Margin="0,0,0,10"
                                             Style="{DynamicResource SimpleRadioButton}"
                                             VerticalAlignment="Bottom"
                                             Content=" Hibernate"
                                             Grid.Row="1"
                                             Grid.Column="2" />
                            </Grid>
                        </StackPanel>
                    </Expander>
                    <Expander x:Name="expApp"
                              Collapsed="Expander_Collapsed"
                              Style="{DynamicResource SimpleExpander}"
                              Expanded="Expander_Expanded"
                              Header="Application">
                        <StackPanel>
                            <Grid Height="225">
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="0.127*" />
                                    <RowDefinition Height="0.742*" />
                                    <RowDefinition Height="0.131*" />
                                </Grid.RowDefinitions>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="0.455*" />
                                    <ColumnDefinition Width="0.545*" />
                                </Grid.ColumnDefinitions>
                                <Button x:Name="btnAddApplication"
                                        Click="btnAddApplication_Click"
                                        HorizontalAlignment="Center"
                                        Margin="0"
                                        Width="150"
                                        Content="Add Application"
                                        Style="{DynamicResource SimpleButton}"
                                        VerticalAlignment="Center"
                                        Height="20"
                                        Grid.Column="1" />
                                <ListBox x:Name="lbApplications"
                                         SelectionChanged="lbApplications_SelectionChanged"
                                         AlternationCount="2"
                                         Margin="2,0"
                                         Grid.Row="1"
                                         Style="{DynamicResource SimpleListBox}"
                                         Grid.Column="1"
                                         Width="150" />
                                <Button x:Name="btnRemoveApplication"
                                        Click="btnRemoveApplication_Click"
                                        HorizontalAlignment="Center"
                                        Margin="0"
                                        Width="150"
                                        Content="Remove Application"
                                        Style="{DynamicResource SimpleButton}"
                                        VerticalAlignment="Center"
                                        Height="20"
                                        Grid.Row="2"
                                        Grid.Column="1" />
                                <Image Margin="21.032,25.475,23.033,29.475"
                                       Grid.Row="1"
                                       Source="Assets/applications.png" />
                            </Grid>
                        </StackPanel>
                    </Expander>
                </StackPanel>
                <Grid Grid.Row="1"
                      Grid.RowSpan="2">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="0.104*" />
                        <RowDefinition Height="0.098*" />
                        <RowDefinition Height="0.108*" />
                        <RowDefinition Height="0.69*" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="0.371*" />
                        <ColumnDefinition Width="0.629*" />
                    </Grid.ColumnDefinitions>
                    <TextBlock HorizontalAlignment="Right"
                               VerticalAlignment="Center"
                               Text="Select Type : "
                               TextWrapping="Wrap" />
                    <TextBlock HorizontalAlignment="Right"
                               VerticalAlignment="Center"
                               Text="Select Time : "
                               TextWrapping="Wrap"
                               Grid.Row="1" />
                    <ComboBox x:Name="cmbType"
                              SelectionChanged="cmbType_SelectionChanged"
                              HorizontalAlignment="Left"
                              Margin="5,0,0,0"
                              Style="{DynamicResource SimpleComboBox}"
                              VerticalAlignment="Center"
                              Width="150"
                              Grid.Column="1"
                              Height="20"
                              IsReadOnly="True" />
                    <ComboBox x:Name="cmbHour"
                              HorizontalAlignment="Left"
                              Margin="5,0,0,0"
                              Style="{DynamicResource SimpleComboBox}"
                              VerticalAlignment="Center"
                              Width="50"
                              Height="20"
                              Grid.Column="1"
                              Grid.Row="1"
                              IsReadOnly="True" />
                    <ComboBox x:Name="cmbMinute"
                              HorizontalAlignment="Left"
                              Margin="56,0,0,0"
                              Style="{DynamicResource SimpleComboBox}"
                              VerticalAlignment="Center"
                              Width="50"
                              Height="20"
                              Grid.Column="1"
                              Grid.Row="1"
                              IsReadOnly="True" />
                    <ComboBox x:Name="cmbSeconds"
                              Margin="0,0,59.002,0"
                              Style="{DynamicResource SimpleComboBox}"
                              VerticalAlignment="Center"
                              Width="50"
                              Height="20"
                              Grid.Column="1"
                              Grid.Row="1"
                              IsReadOnly="True"
                              HorizontalAlignment="Right" />
                    <Button x:Name="btnStartStop"
                            Click="btnStartStop_Click"
                            HorizontalAlignment="Left"
                            Margin="5,0,0,0"
                            Style="{DynamicResource SimpleButton}"
                            VerticalAlignment="Center"
                            Width="75"
                            Height="20"
                            Content="Start"
                            Grid.Column="1"
                            Grid.Row="2" />
                    <Button x:Name="btnNow"
                            Click="btnNow_Click"
                            Margin="0,0,57.005,0"
                            Style="{DynamicResource SimpleButton}"
                            VerticalAlignment="Center"
                            Width="75"
                            Height="20"
                            Content="Now"
                            Grid.Column="1"
                            Grid.Row="2"
                            HorizontalAlignment="Right" />
                </Grid>
                <Grid Grid.Row="2">
                    <GroupBox Header="Selected Settings"
                              Margin="5">
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="0.418*" />
                                <ColumnDefinition Width="0.582*" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="0.172*" />
                                <RowDefinition Height="0.184*" />
                                <RowDefinition Height="0.644*" />
                            </Grid.RowDefinitions>
                            <TextBlock HorizontalAlignment="Right"
                                       VerticalAlignment="Center"
                                       FontFamily="Verdana"
                                       FontSize="13.333"
                                       Text="Selected Type : "
                                       TextWrapping="Wrap" />
                            <TextBlock HorizontalAlignment="Right"
                                       VerticalAlignment="Center"
                                       Grid.Row="1"
                                       FontFamily="Verdana"
                                       FontSize="13.333"
                                       Text="Selected Time : "
                                       TextWrapping="Wrap" />
                            <TextBlock HorizontalAlignment="Left"
                                       Margin="5,0,0,0"
                                       VerticalAlignment="Center"
                                       Grid.Column="1"
                                       FontFamily="Verdana"
                                       FontSize="13.333"
                                       Text="{Binding SelectedItem, ElementName=cmbType, Mode=Default}"
                                       TextWrapping="Wrap" />
                            <Grid Margin="0,0,0,0"
                                  Grid.Row="1"
                                  Grid.Column="1">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="0.134*" />
                                    <ColumnDefinition Width="0.044*" />
                                    <ColumnDefinition Width="0.103*" />
                                    <ColumnDefinition Width="0.044*" />
                                    <ColumnDefinition Width="0.112*" />
                                    <ColumnDefinition Width="0.563*" />
                                </Grid.ColumnDefinitions>
                                <TextBlock Margin="0"
                                           VerticalAlignment="Center"
                                           Grid.Row="1"
                                           FontFamily="Verdana"
                                           FontSize="13.333"
                                           Text="{Binding SelectedItem, ElementName=cmbHour, Mode=Default}"
                                           TextWrapping="Wrap"
                                           HorizontalAlignment="Center" />
                                <TextBlock Margin="0"
                                           VerticalAlignment="Center"
                                           Grid.Row="1"
                                           FontFamily="Verdana"
                                           FontSize="13.333"
                                           Text=":"
                                           TextWrapping="Wrap"
                                           Grid.Column="1" />
                                <TextBlock Margin="0"
                                           VerticalAlignment="Center"
                                           Grid.Row="1"
                                           FontFamily="Verdana"
                                           FontSize="13.333"
                                           Text="{Binding SelectedItem, ElementName=cmbMinute, Mode=Default}"
                                           TextWrapping="Wrap"
                                           HorizontalAlignment="Center"
                                           Grid.Column="2" />
                                <TextBlock Margin="0"
                                           VerticalAlignment="Center"
                                           Grid.Row="1"
                                           FontFamily="Verdana"
                                           FontSize="13.333"
                                           Text=":"
                                           TextWrapping="Wrap"
                                           Grid.Column="3" />
                                <TextBlock Margin="0"
                                           VerticalAlignment="Center"
                                           Grid.Row="1"
                                           FontFamily="Verdana"
                                           FontSize="13.333"
                                           Text="{Binding SelectedItem, ElementName=cmbSeconds, Mode=Default}"
                                           TextWrapping="Wrap"
                                           HorizontalAlignment="Center"
                                           Grid.Column="4" />
                                <TextBlock Margin="5,0,0,0"
                                           VerticalAlignment="Center"
                                           Grid.Row="1"
                                           FontFamily="Verdana"
                                           FontSize="13.333"
                                           Text="Hrs."
                                           TextWrapping="Wrap"
                                           HorizontalAlignment="Left"
                                           Grid.Column="5" />
                            </Grid>
                            <TextBlock x:Name="txtNote"
                                       HorizontalAlignment="Center"
                                       VerticalAlignment="Center"
                                       FontFamily="Verdana"
                                       FontSize="13.333"
                                       TextWrapping="Wrap"
                                       Grid.Row="2"
                                       Grid.ColumnSpan="2"
                                       Margin="0,0,0,10" />
                            <Image x:Name="imgInfo"
                                   Visibility="Collapsed"
                                   MouseLeftButtonDown="imgInfo_MouseLeftButtonDown"
                                   Margin="0,0,2,2"
                                   Grid.RowSpan="2"
                                   Width="32"
                                   Height="32"
                                   Grid.Row="2"
                                   Grid.Column="1"
                                   HorizontalAlignment="Right"
                                   VerticalAlignment="Bottom"
                                   Source="Assets/info.png"
                                   Cursor="Hand" />
                        </Grid>
                    </GroupBox>
                </Grid>
            </Grid>
        </Border>

    </Grid>
</Controls:GlassWindow >
